package com.wsj.service;

import java.util.List;
import java.util.Map;

import com.wsj.util.exception.BusinessException;
import com.wsj.util.page.PageResultSet;
import com.wsj.web.vo.homeSite.MagazineName;

public interface IMagazineNameServ {

	public void add(MagazineName magazineName) throws BusinessException ;
	
	public void delete(MagazineName magazineName) throws BusinessException ;
	
	public void update(MagazineName magazineName) throws BusinessException ;
	
	public List<MagazineName> loadAll() throws BusinessException ;
	
	public List<MagazineName> loadByTime(Integer top) throws BusinessException ;
	
	public MagazineName loadById(Integer id) throws BusinessException ;
	
	public boolean checkName(String name) throws BusinessException ;
	
	public MagazineName loadByName(String name) throws BusinessException ;
	
	public Map<String,String> loadMagazineNameMapByInputtime(String year)throws BusinessException;
	
	public PageResultSet loadPageList(String keyWord,String name,Short isCommend, Short iskd,String beginDate,String endDate,Integer page,Integer pageSize) throws BusinessException;

	/***
	 * 获取这一期下面的最近的八个杂志.
	 * @param magazineNameId
	 * @return
	 * @throws BusinessException
	 */
	public List<MagazineName> loadLastMagazineNameListById(Integer magazineNameId)throws BusinessException;

	/*****
	 * 获取最新一期的杂志名id
	 * @return
	 * @throws BusinessException
	 */
	public Integer loadMagazineLastId()throws BusinessException;

	public List getMagazineClassListByParentId(Integer magazineNameid)throws BusinessException;
	
	
}
